package com.pwt.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * MenuSetting
 *
 * @author auto generated
 * @date 2021-09-28 11:38:50
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[menu_setting]")
@Schema(name = "MenuSetting")
@DynamicInsert
@DynamicUpdate
public class MenuSetting extends BaseEntity {

	/**
	 * 工序表PRUEFER PRPRUEFER字段，k008
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "prueferId",description = "工序表PRUEFER PRPRUEFER字段，k008")
	@Column(name = "pruefer_id", nullable = true)
	private Integer prueferId;

	@Transient
	@Schema(description = "工序名称")
	@JsonIgnore
	private String  prueferName;

	/**
	 * 1-监控，2-单元统计
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "type",description = "1-监控，2-单元统计")
	@Column(name = "type", nullable = true)
	private Integer type;

	/**
	 * 菜单名称
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "name",description = "菜单名称")
	@Column(name = "name", nullable = true, length = 255)
	private String name;

	/**
	 * 菜单类型
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "menuType",description = "菜单类型")
	@Column(name = "menu_type", nullable = true)
	private Integer menuType;

	/**
	 * 排序
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "order",description = "排序")
	@Column(name = "[order]", nullable = true)
	private Integer order;

}
